package cn.uyunsky.platform.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * <p/>
 * 此对象对应一个树节点，可以是树枝，也可以是叶子;
 * <p/>
 * 注意修该这里的属性连带需要修改TreeGetterImpl方法，才能将新属性节点返回
 *
 * @author baiyh
 */
public class TreeVO {

    private String id;
    private String name;
    private String url = "";
    private boolean open;
    private boolean checked;

    private boolean nocheck;
    private boolean isParent;

    private String iconCls;
    protected List<Object> children = new ArrayList<Object>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isNocheck() {
        return nocheck;
    }

    public void setNocheck(boolean nocheck) {
        this.nocheck = nocheck;
    }

    public boolean isParent() {
        return isParent;
    }

    public void setParent(boolean parent) {
        isParent = parent;
    }


    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    /*------------*/
    public List<Object> getChildren() {
        return children;
    }

    public void setChildren(List<Object> children) {
        this.children = children;
    }

    public void addChildren(TreeVO children) {
        this.children.add(children);
    }


}
